package at.fhooe.engine.physics.forces;

public class RoationForce extends Force {

	private double m_acceleration;
	private int m_rotDir;
	
	public RoationForce(double rotDir, double acceleration) {
		if(rotDir < 0) {
			m_rotDir = -1;
		} else {
			m_rotDir = 1;
		}
		m_acceleration = acceleration;
	}
	
	@Override
	public double getAccelerationX(double time, double position, double velocity, double angularPosition) {
		return 0;
	}

	@Override
	public double getAccelerationY(double time, double position, double velocity, double angularPosition) {
		return 0;
	}

	@Override
	public double getAngularAcceleration(double time, double position, double velocity, double angularPosition) {
		return m_rotDir * m_acceleration;
	}
}
